﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/rank.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/Homepage/style.css"/>
<style>
img {border:none;}

</style>
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>
<script type="text/javascript">
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
} 	

cate = getQueryString('cate');


$(function(){


if(cate==null){
$(".rank_title").find('img').attr("src","__PUBLIC__/img/bangdan/title_caifu.jpg");
$("#caifu").find('img').attr("src","__PUBLIC__/img/bangdan/ccaifu.jpg");
}else{
$(".rank_title").find('img').attr("src","__PUBLIC__/img/bangdan/title_"+cate+".jpg");
$("#caifu").find('img').attr("src","__PUBLIC__/img/bangdan/caifu.jpg");
$("#"+cate).find('img').attr("src","__PUBLIC__/img/bangdan/c"+cate+".jpg");
}

$('.cate').hover(function(){
		
		Iid=$(this).attr('id');
		$('.cate').each(function(){
		 imgname = $(this).attr("id");
		 $(this).find('img').attr('src',"__PUBLIC__/img/bangdan/"+imgname+".jpg");
		
		})
	
		$(this).find('img').attr('src',"__PUBLIC__/img/bangdan/c"+Iid+".jpg");
		if(cate==null){
			$("#caifu").find('img').attr("src","__PUBLIC__/img/bangdan/ccaifu.jpg");
		}else{
		$("#"+cate).find('img').attr("src","__PUBLIC__/img/bangdan/c"+cate+".jpg");
		}	

},function(){
		Oid=$(this).attr('id');
		$(this).find('img').attr('src',"__PUBLIC__/img/bangdan/"+Oid+".jpg");
		if(cate==null){
			$("#caifu").find('img').attr("src","__PUBLIC__/img/bangdan/ccaifu.jpg");
		}else{
		$("#"+cate).find('img').attr("src","__PUBLIC__/img/bangdan/c"+cate+".jpg");
		}		
})

$('.weektitle span').hover(function(){
		i = $('.weektitle span').index(this);
		$('.weektitle span').each(function(){
				index = $('.weektitle span').index(this);	
				
				$(this).children('img').attr('src','__PUBLIC__/img/bangdan/week0'+(index+1)+'.jpg');		
		})
		
		$(this).children('img').attr('src','__PUBLIC__/img/bangdan/hweek0'+(i+1)+'.jpg');
		$('.weektable').removeClass('on');
		$('.weektable').eq(i).addClass('on');
		

})

$('.monthtitle span').hover(function(){
		j = $('.monthtitle span').index(this);
		$('.monthtitle span').each(function(){
				k = $('.monthtitle span').index(this);	
				
				$(this).children('img').attr('src','__PUBLIC__/img/bangdan/month0'+(k+1)+'.jpg');		
		})
		
		$(this).children('img').attr('src','__PUBLIC__/img/bangdan/hmonth0'+(j+1)+'.jpg');
		$('.monthtable').removeClass('on');
		$('.monthtable').eq(j).addClass('on');
})			

});
	

		</script>

</head>
<body>
<div class="home_menu" style="width:auto;">
<include file="Public/home_header" />
<div style="clear:both"></div>
<div class="wrap" style="min-height:550px;margin-top:10px;_margin-top:-30px;">
	<div>
	<img  src="__PUBLIC__/img/{:C('filename')}/phb_02.jpg" />
	</div>
	<div class="left">
		<ul>
		<li id="caifu" class="cate"><a href="{:U('rank')}"><img  src="__PUBLIC__/img/bangdan/hcaifu.jpg" /></a></li>
		<li id="renqi" class="cate"><a href="{:U('rank')}?cate=renqi"><img  src="__PUBLIC__/img/bangdan/renqi.jpg" /></a></li>
		<li id="fangjian" class="cate"><a href="{:U('rank')}?cate=fangjian"><img  src="__PUBLIC__/img/bangdan/fangjian.jpg" /></a></li>
		<li id="shuahua" class="cate"><a href="{:U('rank')}?cate=shuahua"><img  src="__PUBLIC__/img/bangdan/shuahua.jpg" /></a></li>
		</ul>
	</div>
	
	<div class="center">
		<div class="rank_title"><img  src="__PUBLIC__/img/bangdan/title_fangjian.jpg" /></div>
		<div class="biaoti1">
			<div  class="weektitle"><span><img src="__PUBLIC__/img/bangdan/hweek01.jpg" id="bzl" ></span><span><img src="__PUBLIC__/img/bangdan/week02.jpg" id="szl" /></span></div>
			<table width="389" style="align:center" class="weektable on" cellspacing=0 cellpadding=0>
	
				<IF condition="($Think.get.cate eq 'renqi')">
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">人气(金币)</td></tr>			
				<elseif condition="($Think.get.cate eq 'fangjian')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间人气</td></tr>			
				<elseif condition="($Think.get.cate eq 'shuahua')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间刷花</td></tr>			
				<else />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">财富(金币)</td></tr>							
				</IF>

				<empty name="thisweek">
				<tr><td colspan='4'>稍后更新....</td></tr>
				</empty>				
				<volist name='thisweek' id="vo" key="k">
				<tr><td><div class="ziti">{$k}</div></td><td class="ziti1" ><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">{$vo.nvcbid}<else />{$vo.nuserid}</if></td><td class="ziti2" <IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">title="{$vo.cname}"<else />title="{$vo.calias}"</if>><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')"><?php echo cut_str(($vo['cname']),8);?><else /><?php echo cut_str(($vo['calias']),8);?></if></td>
				<td class="ziti3" title="<?php 
					if($_GET['cate']=='fangjian'){
					echo $vo['fscore'];
				}else{
					echo $vo['nmoney'];
				}							
				?>">				<?php 
				if($_GET['cate']=='fangjian'){
					$data = floor($vo['fscore']);
				}else{
					$data = floor($vo['nmoney']);
				}
				$length = strlen($data);
				if($length>4&&$length<9){
				  $total = substr($data,0,($length-4));
				  echo $total."万";
				}else if($length>8){
				  $total = substr($data,0,($length-8));
				  echo $total."亿";					
				}else{
					echo $data;
				};
				?>	
				</td>
				</tr>
				</volist>	
			</table>	
			<table width="389" style="align:center" class="weektable" cellspacing=0 cellpadding=0>
				<IF condition="($Think.get.cate eq 'renqi')">
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">人气(金币)</td></tr>			
				<elseif condition="($Think.get.cate eq 'fangjian')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间人气</td></tr>			
				<elseif condition="($Think.get.cate eq 'shuahua')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间刷花</td></tr>			
				<else />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">财富(金币)</td></tr>							
				</IF>
				<empty name="lastweek">
				<tr><td colspan='4'>稍后更新....</td></tr>
				</empty>				
				<volist name='lastweek' id="vo" key="k">
				<tr><td><div class="ziti">{$k}</div></td><td class="ziti1" ><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">{$vo.nvcbid}<else />{$vo.nuserid}</if></td><td class="ziti2" <IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">title="{$vo.cname}"<else />title="{$vo.calias}"</if>><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')"><?php echo cut_str(($vo['cname']),8);?><else /><?php echo cut_str(($vo['calias']),8);?></if></td>
				<td class="ziti3" title="<?php 
					if($_GET['cate']=='fangjian'){
					echo $vo['fscore'];
				}else{
					echo $vo['nmoney'];
				}							
				?>">				<?php 
				if($_GET['cate']=='fangjian'){
					$data = floor($vo['fscore']);
				}else{
					$data = floor($vo['nmoney']);
				}
				$length = strlen($data);
				if($length>4&&$length<9){
				  $total = substr($data,0,($length-4));
				  echo $total."万";
				}else if($length>8){
				  $total = substr($data,0,($length-8));
				  echo $total."亿";					
				}else{
					echo $data;
				};
				?>	
				</td>
				</tr>
				</volist>	
			</table>		
		</div>
		<div class="biaoti2">
			<div  class="monthtitle"><span><img src="__PUBLIC__/img/bangdan/hmonth01.jpg" id="byl" /></span><span><img src="__PUBLIC__/img/bangdan/month02.jpg" id="syl" /></span></div>
			<table width="389" style="align:center" class="monthtable on" cellspacing=0 cellpadding=0>
				<IF condition="($Think.get.cate eq 'renqi')">
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">人气(金币)</td></tr>			
				<elseif condition="($Think.get.cate eq 'fangjian')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间人气</td></tr>			
				<elseif condition="($Think.get.cate eq 'shuahua')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间刷花</td></tr>			
				<else />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">财富(金币)</td></tr>							
				</IF>
				<empty name="thismonth">
				<tr><td colspan='4'>稍后更新....</td></tr>
				</empty>					
				<volist name='thismonth' id="vo" key="k">
				<tr><td><div class="ziti">{$k}</div></td><td class="ziti1" ><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">{$vo.nvcbid}<else />{$vo.nuserid}</if></td><td class="ziti2" <IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">title="{$vo.cname}"<else />title="{$vo.calias}"</if>><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')"><?php echo cut_str(($vo['cname']),8);?><else /><?php echo cut_str(($vo['calias']),8);?></if></td>
				<td class="ziti3" title="<?php 
					if($_GET['cate']=='fangjian'){
					echo $vo['fscore'];
				}else{
					echo $vo['nmoney'];
				}							
				?>">				<?php 
				if($_GET['cate']=='fangjian'){
					$data = floor($vo['fscore']);
				}else{
					$data = floor($vo['nmoney']);
				}
				$length = strlen($data);
				if($length>4&&$length<9){
				  $total = substr($data,0,($length-4));
				  echo $total."万";
				}else if($length>8){
				  $total = substr($data,0,($length-8));
				  echo $total."亿";					
				}else{
					echo $data;
				};
				?>		
				</td>
				</tr>
				</volist>	
			</table>
			<table width="389" style="align:center" class="monthtable" cellspacing=0 cellpadding=0>
				<IF condition="($Think.get.cate eq 'renqi')">
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">人气(金币)</td></tr>			
				<elseif condition="($Think.get.cate eq 'fangjian')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间人气</td></tr>			
				<elseif condition="($Think.get.cate eq 'shuahua')" />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">房间ID</td><td class="ziti2" style="padding-top:10px">房间名称</td><td class="ziti3"  style="padding-top:10px">房间刷花</td></tr>			
				<else />
					<tr class="ziti4" ><td><div style="padding-left:15px;padding-top:10px">排名</div></td><td class="ziti1" style="padding-top:10px">用户ID</td><td class="ziti2" style="padding-top:10px">昵称</td><td class="ziti3"  style="padding-top:10px">财富(金币)</td></tr>							
				</IF>
				<empty name='lastmonth'>
				<tr><td colspan='4'>稍后更新....</td></tr>
				</empty>					
				<volist name='lastmonth' id="vo" key="k">
				<tr><td><div class="ziti">{$k}</div></td><td class="ziti1" ><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">{$vo.nvcbid}<else />{$vo.nuserid}</if></td><td class="ziti2" <IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')">title="{$vo.cname}"<else />title="{$vo.calias}"</if>><IF condition="($Think.get.cate eq 'fangjian') or ($Think.get.cate eq 'shuahua')"><?php echo cut_str(($vo['cname']),8);?><else /><?php echo cut_str(($vo['calias']),8);?></if></td>
				<td class="ziti3" title="<?php 
					if($_GET['cate']=='fangjian'){
					echo $vo['fscore'];
				}else{
					echo $vo['nmoney'];
				}							
				?>">
				<?php 
				if($_GET['cate']=='fangjian'){
					$data = floor($vo['fscore']);
				}else{
					$data = floor($vo['nmoney']);
				}
				$length = strlen($data);
				if($length>4&&$length<9){
				  $total = substr($data,0,($length-4));
				  echo $total."万";
				}else if($length>8){
				  $total = substr($data,0,($length-8));
				  echo $total."亿";					
				}else{
					echo $data;
				};
				?>		
				</td>				
				</tr>
				</volist>
			</table>		
		</div>
		<div style="clear:both;"></div>
	</div>	


	<div style="clear:both"></div></div>
<style>
.home_logo{margin-top:120px;margin-bottom:30px;}
</style>
<include file="Public/home_footer" />
</div>

</body></html>